package com.joyer.enums;

/**
 * User: wangzhiyuan
 * Date: 2014/12/11
 * Time: 19:54
 */
public enum ErrorPromptEnum {
    ERROR_USERAGENT("系统错误，userAgent缺失","1"),ERROR_SIGN("系统错误，消息认证码缺失","2"),
    ERROR_IMEI("系统错误，imei参数缺失","3"),ERROR_TIME("系统错误，时间参数缺失","4"),
    ERROR_WRONG_SIGN("系统错误，校验码错误","5"),ERROR_DUPLICATE_REQUEST("重复请求错误，该请求已失效","6"),
    ERROR_SENSITIVE_WORD("发送内容含有敏感词，请检查后重新发送","7"),ERROR_SERVER("服务器错误","99");

    private String name;
    private String code;
    private ErrorPromptEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
